WRITE MEMBLOCK FLOAT
This command will write a float into the specified location of the memblock.
WRITE MEMBLOCK FLOAT Memblock Number, Position, Float
Memblock Number
Integer
The memblock number must exist or the command will fail
Position
Integer
The Position value is specified in bytes
Float
Float
The Float value is a 32-bit floating value
This command does not return a value.
A Float is the term for a datatype consisting of four bytes, also referred to as a real number. The memblock must exist or the command will fail. The Position value is specified in bytes. The Float value is a 32-bit floating value. The parameters must be specified using integer values.
MemblockNumber=1
MAKE MEMBLOCK MemblockNumber, 1024
WRITE MEMBLOCK FLOAT MemblockNumber, 0, 2147483648.0
rem Display data
cls
print "MEMBLOCK EXPRESSION DATA"
print
if MEMBLOCK EXIST(MemblockNumber)=1
print "memblock:";MemblockNumber
print "exist:";MEMBLOCK EXIST(MemblockNumber)
print "ptr:";GET MEMBLOCK PTR(MemblockNumber)
print "size:";GET MEMBLOCK SIZE(MemblockNumber)
print "float:";MEMBLOCK FLOAT(MemblockNumber, 0)
endif
rem Delete memblocks
if MEMBLOCK EXIST(MemblockNumber)=1 then DELETE MEMBLOCK MemblockNumber
do
loop
end
MEMBLOCKS Commands Menu
Index